// -*- coding: utf-8 -*- 
/**
 * Project: LanQiao
 * Creator: yanking
 * Create time: 2022-01-21 16:33
 * IDE: IntelliJ IDEA
 * Introduction:
 */
package com.GroupByCollect;

import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;

public class transactions {
    private currency currency;
    private double transaction;

    public transactions(transactions.currency currency, double transaction) {
        this.currency = currency;
        this.transaction = transaction;
    }

    public transactions.currency getCurrency() {
        return currency;
    }

    public void setCurrency(transactions.currency currency) {
        this.currency = currency;
    }

    public double getTransaction() {
        return transaction;
    }

    public void setTransaction(double transaction) {
        this.transaction = transaction;
    }

    // 交易类
    enum currency {
        YUAN("人民币：元"), DOLLARS("美元：刀"), GOLD("黄金：克");

        currency(String type) {
        }

    }

    @Override
    public String toString() {
        return "transactions{" +
                "currency=" + currency +
                ", transaction=" + transaction +
                '}';
    }
}
